<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>S7-1200系列PLC模块 - B2B电商平台</title>
  <!-- 引入Tailwind CSS -->
  <script src="https://cdn.tailwindcss.com"></script>
  <!-- 引入Font Awesome -->
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  
  <!-- 配置Tailwind -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#0E2E8B',
            success: '#00B42A',
            warning: '#FF7D00',
            danger: '#F53F3F',
            neutral: {
              100: '#F5F7FA',
              200: '#E5E6EB',
              300: '#C9CDD4',
              400: '#86909C',
              500: '#4E5969',
              600: '#272E3B',
              700: '#1D2129',
            }
          },
          fontFamily: {
            inter: ['Inter', 'system-ui', 'sans-serif'],
          },
        },
      }
    }
  </script>
  
  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .product-tab {
        @apply py-4 px-6 border-b-2 border-transparent text-neutral-500 hover:text-primary transition-colors cursor-pointer;
      }
      .product-tab.active {
        @apply border-primary text-primary font-medium;
      }
      .spec-item {
        @apply py-3 border-b border-neutral-100 flex flex-col md:flex-row;
      }
      .quantity-btn {
        @apply w-10 h-10 flex items-center justify-center border border-neutral-200 rounded hover:border-primary hover:text-primary transition-all;
      }
      .btn-primary {
        @apply bg-primary text-white px-6 py-3 rounded-lg hover:bg-primary/90 transition-all;
      }
      .btn-outline {
        @apply border border-primary text-primary px-6 py-3 rounded-lg hover:bg-primary/5 transition-all;
      }
    }
  </style>
</head>

<body class="font-inter bg-neutral-100 text-neutral-700 min-h-screen">
  <div class="container mx-auto px-4 py-8">
    <!-- 面包屑导航 -->
    <div class="text-sm text-neutral-500 mb-6">
      <a href="#" class="hover:text-primary">首页</a>
      <i class="fa fa-angle-right mx-2 text-neutral-400"></i>
      <a href="#" class="hover:text-primary">电气设备</a>
      <i class="fa fa-angle-right mx-2 text-neutral-400"></i>
      <a href="#" class="hover:text-primary">PLC控制器</a>
      <i class="fa fa-angle-right mx-2 text-neutral-400"></i>
      <span class="text-neutral-700">S7-1200系列PLC模块</span>
    </div>
    
    <!-- 商品基本信息 -->
    <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 p-6 lg:p-8">
        <!-- 商品图片 -->
        <div>
          <div class="bg-neutral-100 rounded-lg p-4 mb-4">
            <img src="https://picsum.photos/800/600?random=1" alt="S7-1200系列PLC模块" class="w-full h-auto rounded-md object-cover">
          </div>
          <div class="grid grid-cols-4 gap-2">
            <div class="bg-neutral-100 rounded p-2 cursor-pointer hover:ring-2 hover:ring-primary">
              <img src="https://picsum.photos/200/200?random=11" alt="产品图片1" class="w-full h-auto rounded">
            </div>
            <div class="bg-neutral-100 rounded p-2 cursor-pointer hover:ring-2 hover:ring-primary">
              <img src="https://picsum.photos/200/200?random=12" alt="产品图片2" class="w-full h-auto rounded">
            </div>
            <div class="bg-neutral-100 rounded p-2 cursor-pointer hover:ring-2 hover:ring-primary">
              <img src="https://picsum.photos/200/200?random=13" alt="产品图片3" class="w-full h-auto rounded">
            </div>
            <div class="bg-neutral-100 rounded p-2 cursor-pointer hover:ring-2 hover:ring-primary">
              <img src="https://picsum.photos/200/200?random=14" alt="产品图片4" class="w-full h-auto rounded">
            </div>
          </div>
        </div>
        
        <!-- 商品信息和采购区 -->
        <div>
          <div class="mb-4">
            <span class="inline-block bg-primary/10 text-primary text-xs px-3 py-1 rounded-full mb-3">
              现货 | 热销产品
            </span>
            <h1 class="text-2xl lg:text-3xl font-bold mb-3">S7-1200系列PLC模块 1214C DC/DC/DC 紧凑型CPU</h1>
            <div class="flex items-center mb-4">
              <div class="flex items-center text-warning mr-4">
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star"></i>
                <i class="fa fa-star-half-o"></i>
                <span class="ml-2 text-neutral-500">(126条评价)</span>
              </div>
              <div class="text-neutral-500">
                <i class="fa fa-eye mr-1"></i> 已被12,458人查看
              </div>
            </div>
          </div>
          
          <div class="border-t border-b border-neutral-100 py-5 mb-5">
            <div class="flex flex-col sm:flex-row items-start sm:items-center gap-3 mb-3">
              <span class="text-3xl font-bold text-primary">¥1,580.00</span>
              <span class="text-lg text-neutral-500 line-through">¥1,750.00</span>
              <span class="bg-red-50 text-red-500 px-2 py-1 rounded text-sm">
                节省 ¥170.00 (9.7%)
              </span>
            </div>
            <div class="text-sm text-neutral-500">
              <span class="mr-4"><i class="fa fa-truck mr-1"></i> 上海仓发货 | 次日达</span>
              <span><i class="fa fa-shield mr-1"></i> 正品保障 | 假一赔十</span>
            </div>
          </div>
          
          <div class="space-y-4 mb-6">
            <div class="flex items-start">
              <span class="text-neutral-500 w-20 flex-shrink-0">品牌：</span>
              <div class="flex items-center">
                <img src="https://picsum.photos/40/40?random=100" alt="西门子" class="w-6 h-6 mr-2">
                <span>西门子（Siemens）</span>
              </div>
            </div>
            
            <div class="flex items-start">
              <span class="text-neutral-500 w-20 flex-shrink-0">型号：</span>
              <span>1214C DC/DC/DC</span>
            </div>
            
            <div class="flex items-start">
              <span class="text-neutral-500 w-20 flex-shrink-0">库存：</span>
              <span class="text-success font-medium">充足 (126件)</span>
            </div>
            
            <div class="flex items-start">
              <span class="text-neutral-500 w-20 flex-shrink-0">包装：</span>
              <span>原厂包装 | 含说明书 | 保修卡</span>
            </div>
            
            <div class="flex items-start">
              <span class="text-neutral-500 w-20 flex-shrink-0">保修期：</span>
              <span>12个月</span>
            </div>
          </div>
          
          <!-- 规格选择 -->
          <div class="mb-6">
            <div class="flex items-center mb-3">
              <span class="text-neutral-500 w-20">规格：</span>
              <span class="text-neutral-700">请选择规格参数</span>
            </div>
            
            <div class="ml-20 space-y-3">
              <div>
                <span class="text-sm text-neutral-500 mb-2 block">输入类型</span>
                <div class="flex flex-wrap gap-2">
                  <button class="px-4 py-2 border border-primary bg-primary/10 text-primary rounded">DC 24V</button>
                  <button class="px-4 py-2 border border-neutral-200 hover:border-primary hover:text-primary rounded transition-colors">AC 220V</button>
                </div>
              </div>
              
              <div>
                <span class="text-sm text-neutral-500 mb-2 block">输出类型</span>
                <div class="flex flex-wrap gap-2">
                  <button class="px-4 py-2 border border-primary bg-primary/10 text-primary rounded">DC 24V 晶体管</button>
                  <button class="px-4 py-2 border border-neutral-200 hover:border-primary hover:text-primary rounded transition-colors">继电器输出</button>
                </div>
              </div>
            </div>
          </div>
          
          <!-- 采购数量 -->
          <div class="mb-8">
            <div class="flex items-center">
              <span class="text-neutral-500 w-20">数量：</span>
              <div class="flex items-center">
                <button class="quantity-btn" data-action="decrease">-</button>
                <input type="number" value="1" min="1" max="126" class="w-16 h-10 text-center border-y border-neutral-200 focus:outline-none">
                <button class="quantity-btn" data-action="increase">+</button>
                <span class="ml-3 text-sm text-neutral-500">库存 126 件</span>
              </div>
            </div>
          </div>
          
          <!-- 采购按钮 -->
          <div class="flex flex-wrap gap-4">
            <button class="btn-primary flex-1 sm:flex-none flex items-center justify-center">
              <i class="fa fa-shopping-cart mr-2"></i> 加入购物车
            </button>
            <button class="btn-outline flex-1 sm:flex-none flex items-center justify-center">
              <i class="fa fa-file-text-o mr-2"></i> 加入报价单
            </button>
            <button class="w-12 h-12 border border-neutral-200 rounded-lg flex items-center justify-center text-neutral-500 hover:text-primary hover:border-primary transition-colors">
              <i class="fa fa-heart-o"></i>
            </button>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 商品详情标签页 -->
    <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
      <!-- 标签导航 -->
      <div class="flex flex-wrap border-b border-neutral-200">
        <div class="product-tab active" data-tab="description">产品详情</div>
        <div class="product-tab" data-tab="specification">技术参数</div>
        <div class="product-tab" data-tab="packaging">包装清单</div>
        <div class="product-tab" data-tab="after-sales">售后服务</div>
        <div class="product-tab" data-tab="comments">用户评价 (126)</div>
      </div>
      
      <!-- 标签内容 -->
      <div class="p-6 lg:p-8">
        <!-- 产品详情 -->
        <div class="tab-content active" id="description">
          <h3 class="text-xl font-bold mb-4">产品概述</h3>
          <p class="mb-4 text-neutral-700 leading-relaxed">
            西门子S7-1200系列PLC是紧凑型可编程逻辑控制器，适用于中小型自动化项目。1214C型号具有14个数字输入点和10个数字输出点，支持多种扩展模块，提供强大的控制功能和灵活的扩展能力。
          </p>
          <p class="mb-6 text-neutral-700 leading-relaxed">
            该控制器集成PROFINET接口，支持以太网通信，可轻松连接到上位机系统或其他自动化设备。内置高速计数器和脉冲输出功能，非常适合需要精确定位控制的应用场景。
          </p>
          
          <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
            <div>
              <h4 class="font-bold mb-3 flex items-center">
                <i class="fa fa-check-circle text-success mr-2"></i> 产品特点
              </h4>
              <ul class="space-y-2">
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>紧凑型设计，节省安装空间</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>集成PROFINET接口，支持网络通信</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>支持多种扩展模块，灵活扩展</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>内置高速计数器和脉冲输出</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>支持多种编程语言，易于使用</span>
                </li>
              </ul>
            </div>
            
            <div>
              <h4 class="font-bold mb-3 flex items-center">
                <i class="fa fa-industry text-primary mr-2"></i> 应用场景
              </h4>
              <ul class="space-y-2">
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>小型机械自动化控制</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>生产线自动化控制</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>物料搬运和输送系统</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>包装机械控制</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-angle-right text-primary mt-1 mr-2"></i>
                  <span>食品饮料加工设备</span>
                </li>
              </ul>
            </div>
          </div>
          
          <div class="mb-6">
            <h4 class="font-bold mb-4">产品细节图</h4>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
              <img src="https://picsum.photos/600/400?random=21" alt="产品细节1" class="w-full h-auto rounded-lg">
              <img src="https://picsum.photos/600/400?random=22" alt="产品细节2" class="w-full h-auto rounded-lg">
              <img src="https://picsum.photos/600/400?random=23" alt="产品细节3" class="w-full h-auto rounded-lg">
              <img src="https://picsum.photos/600/400?random=24" alt="产品细节4" class="w-full h-auto rounded-lg">
            </div>
          </div>
        </div>
        
        <!-- 技术参数 -->
        <div class="tab-content hidden" id="specification">
          <div class="overflow-x-auto">
            <table class="w-full">
              <tbody>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">产品型号</td>
                  <td>1214C DC/DC/DC</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">CPU类型</td>
                  <td>紧凑型CPU</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">供电电压</td>
                  <td>DC 24V</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">输入点数</td>
                  <td>14点 DC 24V</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">输出点数</td>
                  <td>10点 DC 24V 晶体管输出</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">输出电流</td>
                  <td>0.5A 每点，总电流 10A</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">通信接口</td>
                  <td>2个PROFINET接口</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">高速计数器</td>
                  <td>6个，最高频率 100kHz</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">脉冲输出</td>
                  <td>4个，最高频率 100kHz</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">工作温度</td>
                  <td>0°C ~ 60°C</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">存储温度</td>
                  <td>-40°C ~ 70°C</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">尺寸 (宽x高x深)</td>
                  <td>110mm x 90mm x 75mm</td>
                </tr>
                <tr class="spec-item">
                  <td class="w-1/3 text-neutral-500">重量</td>
                  <td>约 250g</td>
                </tr>
              </tbody>
            </table>
          </div>
          
          <div class="mt-6 p-4 bg-neutral-50 rounded-lg">
            <h4 class="font-bold mb-2">下载技术文档</h4>
            <div class="space-y-2">
              <a href="#" class="flex items-center text-primary hover:underline">
                <i class="fa fa-file-pdf-o mr-2"></i>
                <span>S7-1200系列PLC技术手册.pdf</span>
                <span class="ml-auto text-neutral-500">2.4MB</span>
              </a>
              <a href="#" class="flex items-center text-primary hover:underline">
                <i class="fa fa-file-pdf-o mr-2"></i>
                <span>1214C型号安装指南.pdf</span>
                <span class="ml-auto text-neutral-500">1.1MB</span>
              </a>
              <a href="#" class="flex items-center text-primary hover:underline">
                <i class="fa fa-file-excel-o mr-2"></i>
                <span>技术参数对比表.xlsx</span>
                <span class="ml-auto text-neutral-500">456KB</span>
              </a>
            </div>
          </div>
        </div>
        
        <!-- 包装清单 -->
        <div class="tab-content hidden" id="packaging">
          <div class="space-y-6">
            <div>
              <h3 class="text-xl font-bold mb-4">标准包装清单</h3>
              <ul class="space-y-3">
                <li class="flex items-start">
                  <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                  <span>S7-1200 1214C DC/DC/DC 主机模块 x 1</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                  <span>快速安装指南 x 1</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                  <span>产品认证证书 x 1</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                  <span>保修卡 x 1</span>
                </li>
                <li class="flex items-start">
                  <i class="fa fa-check-circle text-success mt-1 mr-3"></i>
                  <span>DIN导轨安装卡扣 x 2</span>
                </li>
              </ul>
            </div>
            
            <div class="border-t border-neutral-100 pt-6">
              <h3 class="text-xl font-bold mb-4">可选配件</h3>
              <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                <div class="border border-neutral-200 rounded-lg p-4 hover:border-primary transition-colors">
                  <img src="https://picsum.photos/100/100?random=31" alt="PROFINET电缆" class="w-20 h-20 object-cover mb-3">
                  <h4 class="font-medium mb-1">PROFINET电缆 2米</h4>
                  <p class="text-sm text-neutral-500 mb-2">用于PLC与其他设备连接</p>
                  <div class="flex justify-between items-center">
                    <span class="text-primary font-medium">¥89.00</span>
                    <button class="text-sm text-primary hover:underline">添加</button>
                  </div>
                </div>
                
                <div class="border border-neutral-200 rounded-lg p-4 hover:border-primary transition-colors">
                  <img src="https://picsum.photos/100/100?random=32" alt="电源适配器" class="w-20 h-20 object-cover mb-3">
                  <h4 class="font-medium mb-1">24V电源适配器 3A</h4>
                  <p class="text-sm text-neutral-500 mb-2">为PLC提供稳定电源</p>
                  <div class="flex justify-between items-center">
                    <span class="text-primary font-medium">¥156.00</span>
                    <button class="text-sm text-primary hover:underline">添加</button>
                  </div>
                </div>
                
                <div class="border border-neutral-200 rounded-lg p-4 hover:border-primary transition-colors">
                  <img src="https://picsum.photos/100/100?random=33" alt="编程电缆" class="w-20 h-20 object-cover mb-3">
                  <h4 class="font-medium mb-1">USB编程电缆</h4>
                  <p class="text-sm text-neutral-500 mb-2">用于电脑与PLC连接编程</p>
                  <div class="flex justify-between items-center">
                    <span class="text-primary font-medium">¥245.00</span>
                    <button class="text-sm text-primary hover:underline">添加</button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 售后服务 -->
        <div class="tab-content hidden" id="after-sales">
          <div class="space-y-6">
            <div>
              <h3 class="text-xl font-bold mb-4">保修政策</h3>
              <p class="mb-3">本产品提供12个月的原厂保修服务，自购买之日起计算。</p>
              <p class="mb-3">保修范围包括产品本身的质量问题，不包括以下情况：</p>
              <ul class="space-y-2 ml-6 list-disc text-neutral-700">
                <li>人为损坏、不当使用或操作失误导致的故障</li>
                <li>未经授权的维修、改装或拆卸</li>
                <li>因不可抗力（如自然灾害、电压异常等）造成的损坏</li>
                <li>产品外观的正常磨损</li>
              </ul>
            </div>
            
            <div class="border-t border-neutral-100 pt-6">
              <h3 class="text-xl font-bold mb-4">退换货政策</h3>
              <p class="mb-3">在产品完好、包装完整且未使用的情况下，支持7天无理由退货，15天内质量问题包换。</p>
              <p class="mb-3">退换货需提供完整的购买凭证、保修卡和原包装。</p>
            </div>
            
            <div class="border-t border-neutral-100 pt-6">
              <h3 class="text-xl font-bold mb-4">技术支持</h3>
              <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <div class="text-center p-4">
                  <div class="w-12 h-12 bg-primary/10 text-primary rounded-full flex items-center justify-center mx-auto mb-3">
                    <i class="fa fa-phone text-xl"></i>
                  </div>
                  <h4 class="font-medium mb-1">电话支持</h4>
                  <p class="text-primary font-medium">400-888-9999</p>
                  <p class="text-sm text-neutral-500">工作日 9:00-18:00</p>
                </div>
                
                <div class="text-center p-4">
                  <div class="w-12 h-12 bg-primary/10 text-primary rounded-full flex items-center justify-center mx-auto mb-3">
                    <i class="fa fa-envelope text-xl"></i>
                  </div>
                  <h4 class="font-medium mb-1">邮件支持</h4>
                  <p class="text-primary font-medium">support@example.com</p>
                  <p class="text-sm text-neutral-500">24小时内回复</p>
                </div>
                
                <div class="text-center p-4">
                  <div class="w-12 h-12 bg-primary/10 text-primary rounded-full flex items-center justify-center mx-auto mb-3">
                    <i class="fa fa-file-text-o text-xl"></i>
                  </div>
                  <h4 class="font-medium mb-1">在线工单</h4>
                  <p class="text-primary font-medium">技术支持平台</p>
                  <p class="text-sm text-neutral-500">工作日 8:00-20:00</p>
                </div>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 用户评价 -->
        <div class="tab-content hidden" id="comments">
          <div class="flex flex-col md:flex-row gap-6">
            <div class="md:w-1/4">
              <div class="bg-neutral-50 rounded-lg p-6 text-center">
                <div class="text-4xl font-bold text-primary mb-2">4.7</div>
                <div class="flex items-center justify-center text-warning mb-4">
                  <i class="fa fa-star"></i>
                  <i class="fa fa-star"></i>
                  <i class="fa fa-star"></i>
                  <i class="fa fa-star"></i>
                  <i class="fa fa-star-half-o"></i>
                </div>
                <p class="text-neutral-500">基于126条评价</p>
                
                <div class="mt-6 space-y-2">
                  <div class="flex items-center justify-between">
                    <span class="text-sm">5星</span>
                    <div class="flex-1 mx-2 bg-neutral-200 rounded-full h-2">
                      <div class="bg-warning h-2 rounded-full" style="width: 78%"></div>
                    </div>
                    <span class="text-sm">78%</span>
                  </div>
                  <div class="flex items-center justify-between">
                    <span class="text-sm">4星</span>
                    <div class="flex-1 mx-2 bg-neutral-200 rounded-full h-2">
                      <div class="bg-warning h-2 rounded-full" style="width: 15%"></div>
                    </div>
                    <span class="text-sm">15%</span>
                  </div>
                  <div class="flex items-center justify-between">
                    <span class="text-sm">3星</span>
                    <div class="flex-1 mx-2 bg-neutral-200 rounded-full h-2">
                      <div class="bg-warning h-2 rounded-full" style="width: 5%"></div>
                    </div>
                    <span class="text-sm">5%</span>
                  </div>
                  <div class="flex items-center justify-between">
                    <span class="text-sm">2星</span>
                    <div class="flex-1 mx-2 bg-neutral-200 rounded-full h-2">
                      <div class="bg-warning h-2 rounded-full" style="width: 1%"></div>
                    </div>
                    <span class="text-sm">1%</span>
                  </div>
                  <div class="flex items-center justify-between">
                    <span class="text-sm">1星</span>
                    <div class="flex-1 mx-2 bg-neutral-200 rounded-full h-2">
                      <div class="bg-warning h-2 rounded-full" style="width: 1%"></div>
                    </div>
                    <span class="text-sm">1%</span>
                  </div>
                </div>
              </div>
            </div>
            
            <div class="md:w-3/4">
              <div class="flex justify-between items-center mb-6">
                <h3 class="text-xl font-bold">用户评价</h3>
                <select class="border border-neutral-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                  <option>默认排序</option>
                  <option>好评优先</option>
                  <option>差评优先</option>
                  <option>最新评价</option>
                  <option>有图评价</option>
                </select>
              </div>
              
              <div class="space-y-6">
                <!-- 评价1 -->
                <div class="border-b border-neutral-100 pb-6">
                  <div class="flex justify-between mb-3">
                    <div class="flex items-center">
                      <img src="https://picsum.photos/50/50?random=41" alt="用户头像" class="w-10 h-10 rounded-full mr-3">
                      <div>
                        <div class="font-medium">上海XX自动化科技有限公司</div>
                        <div class="text-sm text-neutral-500">采购经理</div>
                      </div>
                    </div>
                    <div class="text-warning">
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                    </div>
                  </div>
                  
                  <p class="mb-3">产品质量很好，和描述一致，安装简单，编程软件也很容易上手。我们用于生产线改造，运行稳定，响应速度快，性价比高。物流也很给力，次日就收到了。</p>
                  
                  <div class="flex gap-2 mb-3">
                    <img src="https://picsum.photos/100/100?random=51" alt="评价图片" class="w-20 h-20 object-cover rounded">
                    <img src="https://picsum.photos/100/100?random=52" alt="评价图片" class="w-20 h-20 object-cover rounded">
                  </div>
                  
                  <div class="flex justify-between text-sm text-neutral-500">
                    <span>2023-05-12</span>
                    <span>购买了 5 件</span>
                  </div>
                </div>
                
                <!-- 评价2 -->
                <div class="border-b border-neutral-100 pb-6">
                  <div class="flex justify-between mb-3">
                    <div class="flex items-center">
                      <img src="https://picsum.photos/50/50?random=42" alt="用户头像" class="w-10 h-10 rounded-full mr-3">
                      <div>
                        <div class="font-medium">广州XX设备制造有限公司</div>
                        <div class="text-sm text-neutral-500">工程师</div>
                      </div>
                    </div>
                    <div class="text-warning">
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star-o"></i>
                    </div>
                  </div>
                  
                  <p class="mb-3">产品性能稳定，已经是第二次采购了。唯一的小问题是说明书不够详细，对于新手来说可能需要更多指导。客服响应很及时，技术支持也比较专业，总体满意。</p>
                  
                  <div class="flex justify-between text-sm text-neutral-500">
                    <span>2023-04-28</span>
                    <span>购买了 2 件</span>
                  </div>
                </div>
                
                <!-- 评价3 -->
                <div>
                  <div class="flex justify-between mb-3">
                    <div class="flex items-center">
                      <img src="https://picsum.photos/50/50?random=43" alt="用户头像" class="w-10 h-10 rounded-full mr-3">
                      <div>
                        <div class="font-medium">北京XX系统集成有限公司</div>
                        <div class="text-sm text-neutral-500">采购主管</div>
                      </div>
                    </div>
                    <div class="text-warning">
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star"></i>
                      <i class="fa fa-star-half-o"></i>
                    </div>
                  </div>
                  
                  <p class="mb-3">和西门子原装产品一致，价格比代理商有优势，批量采购还有折扣。物流包装很专业，没有损坏。已经用在几个项目上了，运行都很稳定，会继续合作。</p>
                  
                  <div class="flex gap-2 mb-3">
                    <img src="https://picsum.photos/100/100?random=53" alt="评价图片" class="w-20 h-20 object-cover rounded">
                  </div>
                  
                  <div class="flex justify-between text-sm text-neutral-500">
                    <span>2023-04-15</span>
                    <span>购买了 10 件</span>
                  </div>
                </div>
              </div>
              
              <!-- 分页 -->
              <div class="flex justify-center items-center gap-2 py-6">
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 text-neutral-500 hover:border-primary hover:text-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed" disabled>
                  <i class="fa fa-angle-left"></i>
                </button>
                
                <button class="w-10 h-10 flex items-center justify-center rounded-lg bg-primary text-white">1</button>
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 hover:border-primary hover:text-primary transition-colors">2</button>
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 hover:border-primary hover:text-primary transition-colors">3</button>
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 hover:border-primary hover:text-primary transition-colors">4</button>
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 hover:border-primary hover:text-primary transition-colors">5</button>
                
                <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-neutral-200 text-neutral-500 hover:border-primary hover:text-primary transition-colors">
                  <i class="fa fa-angle-right"></i>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 相关推荐 -->
    <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-8">
      <div class="p-6 lg:p-8">
        <h2 class="text-xl font-bold mb-6">相关推荐</h2>
        
        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
          <!-- 推荐商品1 -->
          <div class="border border-neutral-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
            <div class="p-4">
              <img src="https://picsum.photos/300/200?random=61" alt="西门子PLC扩展模块" class="w-full h-40 object-cover rounded mb-3">
              <h3 class="font-medium mb-2 line-clamp-2">西门子 S7-1200 数字量扩展模块 SM 1223</h3>
              <div class="flex items-center text-sm text-neutral-500 mb-3">
                <i class="fa fa-warehouse mr-1"></i>
                <span>上海仓 | 库存 86 件</span>
              </div>
              <div class="flex justify-between items-center">
                <p class="text-primary font-bold">¥650.00</p>
                <button class="px-3 py-1 border border-primary text-primary rounded hover:bg-primary/5 transition-colors text-sm">
                  查看详情
                </button>
              </div>
            </div>
          </div>
          
          <!-- 推荐商品2 -->
          <div class="border border-neutral-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
            <div class="p-4">
              <img src="https://picsum.photos/300/200?random=62" alt="西门子PLC模拟量模块" class="w-full h-40 object-cover rounded mb-3">
              <h3 class="font-medium mb-2 line-clamp-2">西门子 S7-1200 模拟量扩展模块 SM 1231</h3>
              <div class="flex items-center text-sm text-neutral-500 mb-3">
                <i class="fa fa-warehouse mr-1"></i>
                <span>北京仓 | 库存 42 件</span>
              </div>
              <div class="flex justify-between items-center">
                <p class="text-primary font-bold">¥1,280.00</p>
                <button class="px-3 py-1 border border-primary text-primary rounded hover:bg-primary/5 transition-colors text-sm">
                  查看详情
                </button>
              </div>
            </div>
          </div>
          
          <!-- 推荐商品3 -->
          <div class="border border-neutral-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
            <div class="p-4">
              <img src="https://picsum.photos/300/200?random=63" alt="西门子HMI触摸屏" class="w-full h-40 object-cover rounded mb-3">
              <h3 class="font-medium mb-2 line-clamp-2">西门子 KTP700 精简面板 HMI触摸屏 7英寸</h3>
              <div class="flex items-center text-sm text-neutral-500 mb-3">
                <i class="fa fa-warehouse mr-1"></i>
                <span>广州仓 | 库存 29 件</span>
              </div>
              <div class="flex justify-between items-center">
                <p class="text-primary font-bold">¥2,450.00</p>
                <button class="px-3 py-1 border border-primary text-primary rounded hover:bg-primary/5 transition-colors text-sm">
                  查看详情
                </button>
              </div>
            </div>
          </div>
          
          <!-- 推荐商品4 -->
          <div class="border border-neutral-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
            <div class="p-4">
              <img src="https://picsum.photos/300/200?random=64" alt="西门子编程软件" class="w-full h-40 object-cover rounded mb-3">
              <h3 class="font-medium mb-2 line-clamp-2">西门子 TIA Portal V17 编程软件 专业版</h3>
              <div class="flex items-center text-sm text-neutral-500 mb-3">
                <i class="fa fa-warehouse mr-1"></i>
                <span>电子交付 | 无限库存</span>
              </div>
              <div class="flex justify-between items-center">
                <p class="text-primary font-bold">¥5,800.00</p>
                <button class="px-3 py-1 border border-primary text-primary rounded hover:bg-primary/5 transition-colors text-sm">
                  查看详情
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <script>
    // 标签页切换
    document.querySelectorAll('.product-tab').forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有标签的active类
        document.querySelectorAll('.product-tab').forEach(t => t.classList.remove('active'));
        
        // 为当前标签添加active类
        this.classList.add('active');
        
        // 隐藏所有内容
        document.querySelectorAll('.tab-content').forEach(content => {
          content.classList.add('hidden');
          content.classList.remove('active');
        });
        
        // 显示对应内容
        const tabId = this.getAttribute('data-tab');
        document.getElementById(tabId).classList.remove('hidden');
        document.getElementById(tabId).classList.add('active');
      });
    });
    
    // 数量调整功能
    document.querySelectorAll('.quantity-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        const action = this.getAttribute('data-action');
        const input = this.parentElement.querySelector('input');
        let currentValue = parseInt(input.value);
        const maxValue = parseInt(input.max);
        
        if (action === 'increase' && currentValue < maxValue) {
          input.value = currentValue + 1;
        } else if (action === 'decrease' && currentValue > 1) {
          input.value = currentValue - 1;
        }
      });
    });
    
    // 加入购物车按钮交互
    document.querySelector('.btn-primary:has(.fa-shopping-cart)').addEventListener('click', function() {
      const originalText = this.innerHTML;
      this.innerHTML = '<i class="fa fa-check mr-2"></i> 已加入购物车';
      this.classList.add('bg-success');
      this.classList.remove('bg-primary', 'hover:bg-primary/90');
      
      setTimeout(() => {
        this.innerHTML = originalText;
        this.classList.remove('bg-success');
        this.classList.add('bg-primary', 'hover:bg-primary/90');
      }, 2000);
    });
    
    // 图片切换
    document.querySelectorAll('.grid-cols-4 .bg-neutral-100').forEach(thumb => {
      thumb.addEventListener('click', function() {
        // 获取缩略图的图片地址
        const thumbImg = this.querySelector('img').src;
        
        // 更新主图
        const mainImg = document.querySelector('.bg-neutral-100.mb-4 img');
        mainImg.src = thumbImg.replace('200/200', '800/600');
        
        // 更新选中状态
        document.querySelectorAll('.grid-cols-4 .bg-neutral-100').forEach(t => {
          t.classList.remove('ring-2', 'ring-primary');
        });
        this.classList.add('ring-2', 'ring-primary');
      });
    });
  </script>
</body>
</html>